export function saveStorageData(data, dataKey){
  localStorage.setItem(dataKey, JSON.stringify(data))
}

export function getStorageData(dataKey){
  const dataString = localStorage.getItem(dataKey)
  return dataString?JSON.parse(dataString):null
}